package com.zensun.system.domain.dto;

import com.zensun.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 字典查询实体
 *
 * @author czq
 */
@ApiModel("字典查询实体")
@Data
public class SysDictTypeDto extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 字典名称
     */
    @ApiModelProperty("字典名称")
    private String dictName;

    /**
     * 字典类型
     */
    @ApiModelProperty("字典类型")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty("状态（0停用 1正常）")
    private String status;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建开始时间")
    private Long createStartTime;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建结束时间")
    private Long createEndTime;

    public void setCreateStartTime(Long createStartTime) {
        Long temp = null;
        if (createStartTime != null) {
            temp = createStartTime / 1000;
        }
        this.createStartTime = temp;
    }

    public void setCreateEndTime(Long createEndTime) {
        Long temp = null;
        if (createEndTime != null) {
            temp = createEndTime / 1000;
        }
        this.createEndTime = temp;
    }


}
